<?php
class Mdic extends CI_Model{
	function __construct(){
		parent::__construct();
	}
	function getModelType($modeltype){
		$modeltype = str_replace("/", ",", $modeltype);
		$modeltype = trim($modeltype,",");
		$modeltype = "(".$modeltype.")";
		$sql = "select * 
				from tbdic 
				where classid in $modeltype and type = 2";
		
		$result = "";
		//$query = $this->db->query($sql,array("$modeltype"));
		$query = $this->db->query($sql);
		foreach ($query->result() as $row){
			$result.=$row->name." ";
		}		
		return trim($result," ");
	}
}
?>